/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.grt192.core;

import com.grt192.ui.MapComponent;
import java.awt.BorderLayout;
import javax.swing.JFrame;

import test.ModelSimulator;

/**
 * 
 * @author nikhil & cody
 */
public class RobotUI {

	RobotModel rb;
	MapComponent mp;

	JFrame mainFrame = new JFrame("CannonBot - RPGController");

	public RobotUI(RobotModel rb) {
		this.rb = rb;
		mp = new MapComponent(rb);
		mainFrame.setSize(800, 600);
		mainFrame.add(mp, BorderLayout.CENTER);
		mainFrame.setVisible(true);
		mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public static void main(String[] args) {
		ModelSimulator ms = new ModelSimulator();
		Thread t = new Thread(ms);
		t.start();
		RobotUI rui = new RobotUI(ms);
	}
}
